/* Copyright (c) 2022 Peigen.info. All rights reserved. */

package com.gitee.peigenlpy.actable.example.config;

import com.zaxxer.hikari.HikariDataSource;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Import;
import org.noear.solon.annotation.Inject;

import javax.sql.DataSource;

/**
 * <b>(ActableExampleAutoConfiguration)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/6/17
 */
@Configuration
@Import(scanPackages = {"com.gitee.peigenlpy.actable", "org.apache.ibatis"})
public class ActableExampleAutoConfiguration {
    @Bean(name = "dataSource", typed = true)
    public DataSource dataSource(@Inject("${hotpot.dataSource}") HikariDataSource ds) {
        return ds;
    }
}
